import request from '@/utils/request'
// 订单提交
export function submitOrder(data) {
  return request({
    url: '/api/v1/shop_carts/delmany',
    method: 'post',
    data
  })
}
// 获取订单列表
export function getOrder(data) {
    return request({
      url: '/api/v1/orders',
      method: 'get',
      params: { data }
    })
}
// 根据 id 获取订单详情
export function getIdOrder(data) {
    return request({
      url: '/api/v1/orders/'+data,
      method: 'get',
    })
}
// 根据 id 删除订单详情
export function delIdOrder(data) {
    return request({
      url: '/api/v1/orders/'+data,
      method: 'detele',
    })
}
// 删除多个订单
export function delAllOrder(data) {
    return request({
      url: '/api/v1/orders/delmany',
      method: 'post',
      data
    })
}